﻿using System.Threading.Tasks;
using Cloud.Core.Data;
using Cloud.Dto;

namespace Cloud.Service.Log
{
    public interface ILogService
    {
        Task<PageList<RequestLogDto>> GetRequestLogPageListAsync(int pageIndex, int pageSze, string ControllerName = null, string ActionName = null);
        ServiceReturnDto WriteRequestLog(RequestLogDto requestLog);
        ServiceReturnDto WriteExceptionLog(ExceptionLogDto log);
        Task<PageList<ExceptionLogDto>> GetExceptionLogPageListAsync(int pageIndex, int pageSze, string ControllerName = null, string ActionName = null);
    }
}